<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>modules.js</title>
        <!--[if !IE]>--><style>@import url(index.css);</style><!--<![endif]-->
        <!--[if gte IE 7]><style>@import url(index.css);</style><![endif]-->
        <!--[if lt IE 7]><style>@import url(index.ie.css);</style><![endif]-->
        <script src="build/modules.js?./index.js"></script>
    </head>
    <body>
        <div id="body">
                
            <div class="plaque a x"><div><div></div></div></div>
            <div class="plaque a y"><div><div></div></div></div>
            <div class="plaque a z"><div><div></div></div></div>
            <div class="plaque b x"><div><div></div></div></div> 
            <div class="plaque b y"><div><div></div></div></div>
            <div class="plaque b z"><div><div></div></div></div>
            <div class="plaque c x"><div><div></div></div></div>
            <div class="plaque c y"><div><div></div></div></div>
            <div class="plaque c z"><div><div></div></div></div>
            <div class="plaque d x"><div><div></div></div></div>
            <div class="plaque d y"><div><div></div></div></div>
            <div class="plaque d z"><div><div></div></div></div>

            <div class="frame a x"><div><div>
                <h1>modules.js</h1>
                <p>An <abbr title="XML HTTP Request (AJAX)">XHR</abbr> JavaScript module loader.</p>
                <p><a href="license.html">MIT License</a><br/><small>&copy; 2004-2007 Kris Kowal</small></p>
            </div></div></div>

            <div id="features">

                <div class="slide small center">

                    <div class="frame b x"><div><div>
                        <h3>Small</h3>
                    </div></div></div>

                    <div class="frame c x superfluous"><div><div>
                        Source 61&nbsp;KB
                    </div></div></div>

                    <div class="frame c y superfluous"><div><div>
                        Packed 21&nbsp;KB
                    </div></div></div>

                    <div class="frame c z superfluous"><div><div>
                        Gziped <big>6&nbsp;KB</big>
                    </div></div></div>

                </div>

                <div class="slide portable center">

                    <div class="frame b y"><div><div>
                        <h3>Portable</h3>
                    </div></div></div>

                    <div class="frame c x superfluous"><div><div>
                        Firefox
                    </div></div></div>

                    <div class="frame c y superfluous"><div><div>
                        Safari
                    </div></div></div>

                    <div class="frame c z superfluous"><div><div>
                        Explorer
                    </div></div></div>

                </div>

                <div class="slide powerful center">

                    <div class="frame b z"><div><div>
                        <h3>Powerful</h3>
                    </div></div></div>

                    <div class="frame c x"><div><div>
                        Loads Scripts
                    </div></div></div>

                    <div class="frame c y"><div><div>
                        Isolates Namespaces
                    </div></div></div>

                    <div class="frame c z"><div><div>
                        Manages Dependencies
                    </div></div></div>
                </div>

            </div>

            <div class="frame d x"><div><div>
                <h2>Get</h2>
                <ul>
                    <li><a href="build/modules.js.zip">Download</a></li>
                    <li><a href="https://cixar.com/svns/javascript/trunk/src/modules.js">Subversion</a></li>
                    <li><a href="https://cixar.com/tracs/javascript/browser/trunk/src/modules.js">Trac</a></li>
                    <li><a href="nightly/">Nightly Builds</a></li>
                </ul>
            </div></div></div>

            <div class="frame d y"><div><div>
                <h2>Learn</h2>
                <ul id="learn">
                    <!--<li><a href="build/learn.html?learn/quick.html">Quick Intro</a></li>-->
                    <li><a href="build/doc/modules.html">Reference</a></li>
                    <li><a href="tutorial.html">Tutorial</a></li>
                    <li><a href="https://cixar.com/tracs/javascript/browser/trunk/sites/modulesjs.com/index.js"><tt>index.js</tt></a></li>
                    <!--
                        <li><a href="modules.js.faq.html">FAQ</a></li>
                        <li><a href="modules.js.demo.html">Demo</a></li>
                    -->
                </ul>

            </div></div></div>
            <div class="frame d z"><div><div>
                <h2>Participate</h2>
                <ul>
                    <li><a href="http://groups.google.com/group/chironjs">Discuss</a></li>
                    <li><a href="mailto:kris.kowal@cixar.com">Contact</a></li>
                    <li><a href="build/credit.html">Credits</a></li>
                </ul>
            </div></div></div>

            <div class="frame a y"><div><div id="samples">

                <div class="slide">
                    <h2>Samples</h2>
                    <ul>
                        <li><a href="samples.html#loading">loading</a></li>
                        <li><a href="samples.html#including">including</a></li>
                        <li><a href="samples.html#requiring">requiring</a></li>
                        <li><a href="samples.html#declaring">declaring</a></li>
                        <li><a href="samples.html#hiding">hiding</a></li>
                    </ul>
                </div>

                <div class="slide superfluous">
                    <h3>Loading</h3>
                    <p>Loading <tt>modules.js</tt> and your site's
                    <tt>index.js</tt> modules.</p>
                    <code>
                        &lt;script src="modules.js?<div class="brsp"> </div><b>./index.js</b>"&gt;<br/>
                        &lt;/script&gt;
                    </code>
                </div>

                <div class="slide superfluous">
                    <h3>Importing</h3>
                    <p>Importing names from another module.</p>
                    <code>
                        include(<br/>&nbsp; 'theModule.js'<br/>);
                    </code>
                </div>

                <div class="slide superfluous">
                    <h3>Requiring</h3>
                    <p>Getting a module object.</p>
                    <code>
                        var theModule = <br/>require(<br/>&nbsp; 'theModule.js'<br/>);
                    </code>
                </div>

                <div class="slide superfluous">
                    <h3>Declaring</h3>
                    <p>Declaring an exported item.</p>
                    <code>
                        this.exportMe = 1;<br/>
                    </code>
                </div>

                <div class="slide superfluous">
                    <h3>Hiding</h3>
                    <p>Declaring an item that will not be
                    visible outside your module.</p>
                    <code>
                        var hideMe = 1;
                    </code>
                </div>

            </div></div></div>

            <div class="frame a z"><div><div id="reference">

                <h2><a href="build/doc/modules.html">API</a></h2>

                <h3><a href="build/doc/glossary.html#ModuleScope">module scope</a></h3>
                <ul>
                    <li><a href="build/doc/glossary.html#include">include</a></li>
                    <li><a href="build/doc/glossary.html#require">require</a></li>
                    <li><a href="build/doc/glossary.html#request">request</a></li>
                    <li><a href="build/doc/glossary.html#register">register</a></li>
                    <li><a href="build/doc/glossary.html#resolve">resolve</a></li>
                    <li><a href="build/doc/glossary.html#relative">relative</a></li>
                    <li><a href="build/doc/glossary.html#moduleBind">moduleBind</a></li>
                    <li><a href="build/doc/glossary.html#module">module</a></li>
                    <li><a href="build/doc/glossary.html#moduleUrl">moduleUrl</a></li>
                    <li><a href="build/doc/glossary.html#modulesUrl">modulesUrl</a></li>
                </ul>
                <ul>
                    <li><a href="build/doc/glossary.html#log">log</a></li>
                    <li><a href="build/doc/glossary.html#info">info</a></li>
                    <li><a href="build/doc/glossary.html#warn">warn</a></li>
                    <li><a href="build/doc/glossary.html#error">error</a></li>
                </ul>

                <h3><a href="build/doc/environment.html">environment module</a></h3>
                <ul>
                    <li><a href="build/doc/glossary.html#url">url</a></li>
                    <li><a href="build/doc/glossary.html#locale">locale</a></li>
                    <li><a href="build/doc/glossary.html#app">app</a></li>
                    <li><a href="build/doc/glossary.html#browser">browser</a></li>
                    <li><a href="build/doc/glossary.html#isBrowser">isBrowser</a></li>
                    <li><a href="build/doc/glossary.html#isSafari">isSafari</a></li>
                    <li><a href="build/doc/glossary.html#isIE">isIE</a></li>
                    <li><a href="build/doc/glossary.html#isFirefox">isFirefox</a></li>
                </ul>

                <h3><a href="build/doc/http.html">http module</a></h3>
                <ul>
                    <li><a href="build/doc/glossary.html#request">request</a></li>
                    <li><a href="build/doc/glossary.html#requestText">requestText</a></li>
                    <li><a href="build/doc/glossary.html#requestXml">requestXml</a></li>
                    <li><a href="build/doc/glossary.html#Request">Request</a></li>
                    <li><a href="build/doc/glossary.html#Response">Response</a></li>
                </ul>
                <ul>
                    <li><a href="build/doc/glossary.html#resolve">resolve</a></li>
                    <li><a href="build/doc/glossary.html#parse">parse</a></li>
                    <li><a href="build/doc/glossary.html#format">format</a></li>
                </ul>

                <h3><a href="build/doc/modules.html">modules module</a></h3>
                <ul>
                    <li><a href="build/doc/glossary.html#Module">Module</a></li>
                    <li><a href="build/doc/glossary.html#ModuleScope">ModuleScope</a></li>
                    <li><a href="build/doc/glossary.html#RequireError">RequireError</a></li>
                    <li><a href="build/doc/glossary.html#global">global</a></li>
                    <li><a href="build/doc/glossary.html#modules">modules</a></li>
                    <li><a href="build/doc/glossary.html#evalJail">evalJail</a></li>
                    <li><a href="build/doc/glossary.html#evalJailWith">evalJailWith</a></li>
                </ul>

            </div></div>

        </div>

        <script>
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script>
            var pageTracker = _gat._getTracker("UA-50154-2");
            pageTracker._initData();
            pageTracker._trackPageview();
        </script>

    </body>
</html>
